package special;

import com.entity.User;

import java.util.*;

public class TestEntity {
    private String specialCharacter1; // 特殊字符1
    private String specialCharacter2; // 特殊字符2
    private User outUser; //引用外部对象
    private User innerBean; //JavaBean类型
    private List<String> list; //List类型
    private String[] array; //数组类型
    private Set<String> set; //Set类型
    private Map<String,String> map; //Map类型
    private Properties props; //Properties类型
    private String emptValue; //注入空字符串值
    private String nullValue="init value"; //注入null值

    @Override
    public String toString() {
        return "TestEntity{" +
                "特殊字符1='" + specialCharacter1 + '\'' +
                ",\n 特殊字符2='" + specialCharacter2 + '\'' +
                ", \n引用外部对象=" + outUser +
                ", \nJavaBean类型=" + innerBean.getUserName() +
                ", \nList类型=" + list +
                ", \n数组类型=" + Arrays.toString(array) +
                ", \nset集合类型=" + set +
                ", \nmap集合类型=" + map +
                ", \nProperties类型=" + props +
                ", \n注入空字符串值='" + emptValue + '\'' +
                ", \n注入null值='" + nullValue + '\'' +
                '}';
    }

    public String getSpecialCharacter1() {
        return specialCharacter1;
    }

    public void setSpecialCharacter1(String specialCharacter1) {
        this.specialCharacter1 = specialCharacter1;
    }

    public String getSpecialCharacter2() {
        return specialCharacter2;
    }

    public void setSpecialCharacter2(String specialCharacter2) {
        this.specialCharacter2 = specialCharacter2;
    }

    public User getOutUser() {
        return outUser;
    }

    public void setOutUser(User outUser) {
        this.outUser = outUser;
    }

    public User getInnerBean() {
        return innerBean;
    }

    public void setInnerBean(User innerBean) {
        this.innerBean = innerBean;
    }

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public String[] getArray() {
        return array;
    }

    public void setArray(String[] array) {
        this.array = array;
    }

    public Set<String> getSet() {
        return set;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    public Map<String, String> getMap() {
        return map;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    public Properties getProps() {
        return props;
    }

    public void setProps(Properties props) {
        this.props = props;
    }

    public String getEmptValue() {
        return emptValue;
    }

    public void setEmptValue(String emptValue) {
        this.emptValue = emptValue;
    }

    public String getNullValue() {
        return nullValue;
    }

    public void setNullValue(String nullValue) {
        this.nullValue = nullValue;
    }
}
